package com.jcfk.eam.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 资产大类
 */
public enum AssetKind {
    /**
     * 生产设备
     */
    PRODUCTION_EQUIPMENT(1,"生产设备"),

    /**
     * 量检具
     */
    MEASURING_TOOL(2,"量检具"),

    /**
     * 模具
     */
    MOULD(3,"模具"),

    /**
     * 模具
     */
    TE(4,"模具");

    /**
     * 编码
     */
    private Integer value;

    /**
     * 名称
     */
    private String desc;

    AssetKind(Integer value, String desc){
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue(){
        return value;
    }

    public String getCode(){
        return value.toString();
    }

    public String getDesc(){
        return desc;
    }

    public Map<String,String> getMap(){
        Map<String,String> map=new HashMap<>();
        map.put(PRODUCTION_EQUIPMENT.getCode(), PRODUCTION_EQUIPMENT.getDesc());
        map.put(MEASURING_TOOL.getCode(), MEASURING_TOOL.getDesc());
        map.put(MOULD.getCode(), MOULD.getDesc());
        map.put(TE.getCode(), TE.getDesc());
        return map;
    }
}
